<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>2.过渡</title>
		<style>
			h1{
				background-color: orange;
				transition: 1s linear;
			}
			.qidian{
				transform: translateX(0px);
			}
			.zhongdian {
				transform: translateX(-100%);
			}
		</style>
	</head>
	<body>
		<h1>你好</h1>
	</body>
</html>